package link.anyauto.dtbinding.login;

import android.content.Context;
import android.content.Intent;
import android.util.Log;

import link.anyauto.dtbinding.main.ActMain;

/**
 * Created by Administrator on 2016/7/26.
 */
public class LoginHandlers {

    LoginVM vm;
    Context ctx;

    public void login() {
        // 做登陆的逻辑，登陆成功后，启动ActMain
        ctx.startActivity(new Intent(ctx, ActMain.class));
        Log.e("vm account", vm.account + ":" + vm.pwd);
    }

    public void change() {
        vm.setAccount("hello world");
    }
}
